import request from "../utils/request";
const api_name = "/member";

export default {
    // 发送验证码
    sendSMS(mobile) {
        return request({
            url: `${api_name}/sendsms/${mobile}`,
            method: "get",
        });
    },
    register(user) {
        return request({
            url: `${api_name}/register`,
            method: "post",
            data: user,
        });
    },
    // 登录
    login(user) {
        return request({
            url: `${api_name}/login`,
            method: "post",
            data: user,
        });
    },
    getInfo() {
        return request({
            url: `${api_name}/getinfo`,
            method: "get",
        });
    },
};